<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>推广二维码</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="{{assets}}i/favicon.png">
    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">
    <link rel="icon" sizes="192x192" href="{{assets}}i/app-icon72x72@2x.png">
    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="apple-touch-icon-precomposed" href="__PUBLIC__/assets/i/app-icon72x72@2x.png">
    <link rel="stylesheet" href="__PUBLIC__/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="__PUBLIC__/assets/css/app.css">
    <link rel="stylesheet" href="__PUBLIC__/assets/css/index.css">
    <!--必要样式-->
    <style type="text/css">
        .menuItem img{
            width:100%;
        }
        body {
            background: url(__PUBLIC__/new_images/bg_qrcode.png) no-repeat;
            background-size: 100% 100%;
        }
        
    </style>
</head>
<!-- 微信自定义接口 -->
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<script>
    wx.config({
        "debug": false,
        "beta": false,
        'appId': '{$appId}',
        'timestamp':'{$timestamp}',
        'nonceStr': '{$noncestr}',
        'signature': '{$signature}',
        "jsApiList": ["onMenuShareAppMessage", "onMenuShareTimeline"]
    });
    wx.ready(function () {
        wx.onMenuShareAppMessage({
            title: '汇集好品质，体验好生活，关注更多精美礼品等你拿！',
            desc: '汇集好品质，体验好生活，关注更多精美礼品等你拿！',
            link: "{$host}/Home/WeChat/goToQRCode?user_id={$user_id}",
            imgUrl: '{$host}__PUBLIC__/new_images/wechat_share.jpg'
        });
        wx.onMenuShareTimeline({
            title: '汇集好品质，体验好生活，关注更多精美礼品等你拿！',
            desc: '汇集好品质，体验好生活，关注更多精美礼品等你拿！',
            link: "{$host}/Home/WeChat/goToQRCode?user_id={$user_id}",
            imgUrl: '{$host}__PUBLIC__/new_images/wechat_share.jpg'
        });
    });
    function weChat(){
        $("#mcover").css("display","none");  // 点击弹出层，弹出层消失
    }
</script>
<!-- 微信自定义接口 -->
<body>
    <div align="center" style="margin-top:340px;" >
        <empty name="user_id">
            <img src="__APP__/Home/WeChat/qrCode" width="150" height="150">
            <else/><img src="__APP__/Home/WeChat/qrCode?user_id={$user_id}" width="150" height="150">
        </empty>
    </div>
    <script src="__PUBLIC__/assets/js/jquery.min.js"></script>

    <script src="__PUBLIC__/assets/js/amazeui.min.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
    <script type="text/javascript">


        var type = {$type};
/*        $(function(){

            if(type == 0){

                layer.msg('您还不是代理商', function(){

                    window.location.href = "__APP__/Home/Me/index";

                });

            }


        });*/
      
    </script>
</body>

</html>
